package com.mm.fam.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mm.fam.web.entity.SysOrganization;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * SysOrganizationMapper继承基类
 */
@Repository
public interface SysOrganizationMapper extends BaseMapper<SysOrganization> {
    Integer saveSysOrganization(SysOrganization sysOrganization);

    Integer updateSysOrganization(SysOrganization sysOrganization);

    // 查询列表并分页
    List<SysOrganization> getAllSysOrganization(Page page, @Param("OrganizationNum") String OrganizationNum, @Param("OrganizationName") String OrganizationName);

    Integer delOrgById(String id);

    List<SysOrganization> selectIInsurePeriodById(String id);

    List<SysOrganization> getParent();

    Integer getMaxOrnNum();
}